package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_JEDWPZ"
 *     
*/
public class XtglJedwpz implements Serializable {

    /** identifier field */
    private String pzbh;

    /** persistent field */
    private String nd;

    /** persistent field */
    private String mkbs;

    /** persistent field */
    private String jedwbs;

    /** persistent field */
    private String xswcd;

    /** persistent field */
    private String zt1;

    /** persistent field */
    private String zt2;

    /** full constructor */
    public XtglJedwpz(String pzbh, String nd, String mkbs, String jedwbs, String xswcd, String zt1, String zt2) {
        this.pzbh = pzbh;
        this.nd = nd;
        this.mkbs = mkbs;
        this.jedwbs = jedwbs;
        this.xswcd = xswcd;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public XtglJedwpz() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="PZBH"
     *         
     */
    public String getPzbh() {
        return this.pzbh;
    }

    public void setPzbh(String pzbh) {
        this.pzbh = pzbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="MKBS"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getMkbs() {
        return this.mkbs;
    }

    public void setMkbs(String mkbs) {
        this.mkbs = mkbs;
    }

    /** 
     *            @hibernate.property
     *             column="JEDWBS"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getJedwbs() {
        return this.jedwbs;
    }

    public void setJedwbs(String jedwbs) {
        this.jedwbs = jedwbs;
    }

    /** 
     *            @hibernate.property
     *             column="XSWCD"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getXswcd() {
        return this.xswcd;
    }

    public void setXswcd(String xswcd) {
        this.xswcd = xswcd;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("pzbh", getPzbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglJedwpz) ) return false;
        XtglJedwpz castOther = (XtglJedwpz) other;
        return new EqualsBuilder()
            .append(this.getPzbh(), castOther.getPzbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getPzbh())
            .toHashCode();
    }

}
